manually add foreign key to the tables