updates foreign key name