adding database model, show user search history, caching previous searches