fixed db search query
fixed db search query