def METHOD_NAME(self) -> None:
    """Create tables if needed, and check the schema."""
    self.db_handle.executescript(CREATE_SQL[0])
    cursor = self.db_handle.cursor()
    current_schema = None
    expected_schema = len(CREATE_SQL)
    for row in cursor.execute(
        "SELECT v AS value FROM monitor_schema where k = 'monitor_schema_version'"
    ):
        current_schema = int(row["value"])
    if current_schema is None:
        self.logger_logger.error(
            "Could not check current schema version! Expect weirdness."
        )
        return
    if current_schema < expected_schema:
        self.logger_logger.warning(
            "Schema for %s is out of date: current is %d, latest is %d.",
            self.db_path,
            current_schema,
            expected_schema,
        )
        self.roll_schema_forward(current_schema)
    elif current_schema > expected_schema:
        self.logger_logger.critical(
            "Schema for %s is newer than this code! Cannot use this database file.",
            self.db_path,
        )
        self.connected = False
    else:
        self.logger_logger.debug("Schema for %s is current", self.db_path)