Dao.delete method changed