move table functions out into their own file. move back tag exporting as it has some custom flag logic built in from output_pgsql_t flags