added DAO functionality.