Do the foreign key properly