- created some extra methods to build query object from a custom sql statement