Debugging test queries and making sure correct database with data is being queried