test the database