Skeletal Implementation of DBQuery

Wrote a first version that isn't ready yet because we need to merge with
our new classes.
Merge remote-tracking branch 'origin/dbquery' into feature/parse-new