Make db::run() aware of whether a query is a select