correct the update statement for setting archived flag on SM where document revision does not exist in the xml_documents table
add block for finding and updating records that should be marked as archived.https://redmine.dataone.org/issues/3109
script to find and update missing SystemMetadata revision history. https://redmine.dataone.org/issues/2938