Update foreign key