implements methods crud in class DAO