implement DBAccessorTest and create code the testdriven way