[util]Break out hasValidStatus() into it's own function.
[db/database]Significantly improve performance on Startwith-queries.
[db/database]__getitem__ accept both numeric (raw) objid, as well as string
[db/database]Optimize query() through using using raw_ids, avoiding a join.
[db/database]Add a fields kwarg to query() and a new get()-method.
  Allows to limit the result to a given set of fields.