updating dao class