Add query log module

1. the query history will be saved
2. user can register the historical query