Add filters to the DB

Choice of regex-parsing etc. still TDB but this is a good first draft.
Move query parsing to a common location
Parse filters from the front of the query string

Identified by containing colons. For example:
    lang:ruby,calls,foo

The only syntax restriction this imposes is that table names cannot contain
colons, which is perfectly fine.