add erase method to Dao