Update table and update scripts for the foreign key