add foreign key constraints