updating the pharm data