Got the basic query builder stuff working.