Database query feature test