Fixed several typos that misnamed things.

And removed creation of temp table t_tempschemas, which should make it easier to later
change this to work on streaming replica nodes.

Plus make use of OMITSCHEMAS to indicate schemas that are to be omitted when querying objects.