db search from query string