Added index creation for foreign keys