How do I know if a database is being queried?

If your Metabase internal DB is MySQL then you can use this query