Made foreign key reference the primary key in another table instead of another foreign key.