Fix pgsql table output; make output from pgsql compatible with output from mysql (remove headers and footers).