# Data retrieval
from .commands import (find_events, find_event_descriptors,
                       find_beamline_configs, find_run_starts, find_last,
                       find_run_stops)
# Data insertion
from .commands import (insert_event, insert_event_descriptor, insert_run_start,
                       insert_beamline_config, insert_run_stop,
                       EventDescriptorIsNoneError, format_events,
                       format_data_keys, db_connect, db_disconnect)

from .document import Document

@@ -479,16 +479,45 @@
 nnect)%0A%0A
+# safe metadatastore objects%0A
 from .do
@@ -539,8 +539,148 @@
 ocument%0A
+%0A# object model%0Afrom .odm_templates import (RunStop, RunStart, Event, EventDescriptor,%0A                            BeamlineConfig, DataKey)%0A

Add to mds.api