updated metadataStore.userapi.commands and added write_concern to save routine. custom field added to header and beamline_config document definitions