Fix Document/Version/Element
Performs an integrity check to make sure of the following:
Each document has one or more versions linked to it
Each version has one or more elements linked to it
All versions are linked to a document
All elements are linked to a version
If there are any missing links, the missing documents or versions are created from the information contained in the existing version or element for which the link is missing.