working on searching database on search tab