set a unique index on the node type name, implement updating