Bug fix. Insert statement was using update. doh!
More DocumentDefinition refactoring.