I know this is late for the party, but I had a similar problem, but since it was inside the docker image, I did not have access to python, so I solved it like this:
for X in $(sqlite3 database.db .tables) ; do sqlite3 database.db "SELECT * FROM $X;" | grep >/dev/null 'STRING I WANT' && echo $X; done
This will iterate over all the tables in the database file and perform the select all operation, which I then do for the row. If he finds a row, he prints the table, and from there I can just use sqlite3 to find out how it was used.
I thought this might be useful for those who cannot use Python.
source share