implemented update on Dao