added testable DAO interface.