Implemented the functionality to perform different query types(commented out until the functions are all implemented)