testing if db.query() called when global.dryRun is true or false