Move creation of ID/name table to a separate script