Generates sql file containing database indexes for unindexed foreign key relationships