Index: plugins/persist-sqlite/migrate_to_persist_sqlite.py
--- plugins/persist-sqlite/migrate_to_persist_sqlite.py.orig
+++ plugins/persist-sqlite/migrate_to_persist_sqlite.py
@@ -33,7 +33,7 @@ class SnapshotPersistence:
 class SQLite3Persistence:
     def __init__(self):
         self.__store_id_topic_map: dict[int, str] = {}
-        self.__db_path: Path = Path(__file__).parent.resolve() / "mosquitto.sqlite3"
+        self.__db_path: Path = "/var/db/mosquitto/mosquitto.sqlite3"
         self.__conn: sqlite3.Connection = None
         self.__cursor: sqlite3.Cursor = None
 
