Implemented DAO model

- implemented DAO model