add a simple search ui, and save query keyword history to db.