allow queries with results to be run via db_exec_sql()