Dao implementation for the CRUD function