testing the DB class