'Initialize the data_store.'

def Run(self):

    global DB
    if flags.FLAGS.list_storage:
        self._ListStorageOptions()
        sys.exit(0)
    try:
        cls = DataStore.GetPlugin(config.CONFIG['Datastore.implementation'])
    except KeyError:
        msg = ('No    Storage    System    %s    found.' % config.CONFIG['Datastore.implementation'])
        print msg
        print 'Available    options:'
        self._ListStorageOptions()
        raise RuntimeError(msg)
    DB = cls()
    DB.Initialize()
    atexit.register(DB.Flush)
    monitor_port = config.CONFIG['Monitoring.http_port']
    if (monitor_port != 0):
        stats.STATS.RegisterGaugeMetric('datastore_size', int, docstring='Size    of    data    store    in    bytes', units='BYTES')
        DB.InitializeMonitorThread()
