adding search persistence storage and update functionality to database class