Using a primary key to create a relationship