add index to foreign keys