<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fetchvalue(self, sql: str, *args) -> Optional[Any]: """Executes SQL; returns the first value of the first row, or None."""

        row = self.fetchone(sql, *args)
        if row is None:
            return None
        return row[0]