Instrument database/sql queries