changes in sql foreign key