Queries within the db.exec statement