Refactor insert/materialize node schemas.

Lacks a copyright notice. See tools/approved_licenses/gpl3_voltdb.txt