db: add some canned queries

the idea is that these queries will be profiled every so often to make
sure that they're still fast. Using queries from the trafficdb.queries
module should always be a sane thing to do.