ssp-2681 made change to handle tables without a primary key, in support of external_substitutable_course