Added foreign key constraints