wrote method to QueryController getQuery
wrote new object to SearchController