Here's the exact output of kactivitymanagerd without the dependency installed:
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
> Config timer connecting...
> Setting the name of 0x5570daaf9720 to "org.kde.ActivityManager.ActivityTemplates"
> Setting the name of 0x5570dab020f0 to "org.kde.ActivityManager.RunApplication"
> Setting the name of 0x5570dab321d0 to "org.kde.ActivityManager.Resources.Scoring"
> Creating directory: "/root/.local/share/kactivitymanagerd/resources/"
> QSqlDatabase: QSQLITE driver not loaded
> QSqlDatabase: available drivers:
> KActivities: Database is not open: "kactivities_db_resources_139981781422656_readwrite" "" QSqlError("", "Driver not loaded", "Driver not loaded")
> KActivities: Opening the database in RW mode should always succeed
> Service started, version:
> Cleaning up...