Sketches in a write_document_objects command for osp locations.
When gathering data to write the institition -> document doc-object links, use a single query.