added index on foreign key