Are you using PostgreSQL? Then you could look at the SQL statements in the PostgreSQL log. Maybe that helps?
To enable that logs, for me it was only:
# log all sql statements to stderr -> journalctl -fu postgresql
log_statement = 'all' # none, ddl, mod, all
in /var/lib/{pgsql,postgresql}/data/postgresql.conf (the exact path depends on your distribution)