Made changes to database and search routes