code: def insert_object(self, db_object):
          
          # Create object using the  to_dict() method.
          obj = self.to_dict(db_object)
          obj['active'] = True
          self.collection.insert_one(obj)
docs: Create new entry in the database.
  
          Parameters
          ----------
          db_object : (Sub-class of)ObjectHandle