update generic dao