Add UserQuery entity
Move engine query log process from search engine classes to controllers
Update SQLite database reference