Some DAO and service code, and stub tests to support.