Testing the database