This function is for testing the database