added index for foreign key relations