continued to write the DB class and basic tests