Fix pgsql8 extraction

Fixes problems with triggers, views, and functions extracting properly