code: def db_exec(self, sql: str, *args) -> int:
          
          self.ensure_db_open()
          cursor = self.db.cursor()
          return self.db_exec_with_cursor(cursor, sql, *args)
docs: Executes SQL (with "?" placeholders for arguments).