fix db search