added field types table to output db for rebuilding non-fundamental db types. fixed bugs.