Creating indexes for foreign keys