Implemented Singleton Patter for QueryManager