def METHOD_NAME(self, db: Database, run_id: int) -> None:
    for lineno, (timestamp, formatted_message, severity) in enumerate(self._lines, 1):
        db.add_log_line(
            run_id,
            lineno,
            timestamp,
            _severity_to_sql(severity),
            formatted_message
        )