Removed old query functions and updated the new query function to allow no parameters