update method to DAO