updating Dao class