introducing the QueryController which is the new central instance for managing the queries