<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def db_exec_and_commit(self, sql: str, *args) -> int: """Execute SQL and commit."""

        rowcount = self.db_exec(sql, *args)
        self.commit()
        return rowcount