Move engine query log process from search engine classes to controllers