To test the database