Update working for patient table database