Ensure database set up always
Modify test to run query with db not explicitly set