updating dao and crud