Added DAO class and tests.