Fix pgsql8 extraction

Fixes problems with triggers, views, keys, and functions extracting properly