code: def fetchvalue(self, sql: str, *args) -> Optional[Any]:
          
          row = self.fetchone(sql, *args)
          if row is None:
              return None
          return row[0]
docs: Executes SQL; returns the first value of the first row, or None.