def METHOD_NAME(self):
    if self._db is None:
        if self.db_path is None:
            # Open the default db read-only
            self._db = sqlite3.connect(f"{DEFAULT_DB.as_uri()}?mode=ro", uri=True)
        else:
            self._db = sqlite3.connect(self.db_path)