code: def load_card(self, code, cache=True):
          
          card = self.card_cache.get(code, None)
          if card is None:
              code = code if isinstance(code, str) else str(code)
              with sqlite3.connect(self.dbname) as carddb:
                  result = carddb.execute(
                      "SELECT * FROM CARDS WHERE code = ?", (code,))
                  loadrow = result.fetchone()
                  if not loadrow:
                      return None
                  loaddict = dict(zip(FIELDS, loadrow))
                  card = self.cardclass(loaddict=loaddict)
              if cache:
                  self.cache_card(card)
          return card
docs: Load a card with the given code from the database. This calls each
          save event hook on the save string before commiting it to the database.
  
          Will cache each resulting card for faster future lookups with this
          method while respecting the libraries cache limit. However only if the
          cache argument is True.
  
          Will return None if the card could not be loaded.