Try running this command in your web data directory:
find . -name "*.php" -print | xargs grep -i "dbname.some_table"
This will recursively scan all sub directories and loof for files only with the .php
extension, and then print out any lines that contain the text specified in grep
.