Update MAGIC_TYPE7 nIndex column to iNum query.