updated search and database