Integration test that queries databases