Adds basic query functionality
Adds basic query functionality