old_contents: # markobot naive version
  
  import db
  import pymongo
  
  class markobot:
  
      def __init__(self, database):
          self.db = db.get_db()
  
      def create_chain(name, corpus, order):
  
      def update_chain(name, corpus, order = 0):
  
      def persist_chain(chain, name):
  
      def load_chain(name):
  
      def update_chain(chain, key, value):
  
  
  
  
new_contents: # markobot naive version
  
  import db
  import pymongo
  
  class markobot:
  
      def __init__(self):
          self.database = db.get_db()
  
      def create_chain(name, corpus, order):
      
          if database[name].find_one({'_id': "prefs"}):
              return None
  
      def update_chain(name, corpus, order = 0):
  
      def persist_chain(chain, name):
  
      def load_chain(name):
  
      def update_chain(chain, key, value):
  
  
  
  
subject: Check for pre-existing change