Add index to foreign keys