Move dbtable out of pghelper