fixed bugs search-database