Give access to more query functions and fix queries without a WHERE stmt