PGKB parse and assemble for dtdb