Implemented DAO layer