Added foreign key relationships to the word