- dba::connect($db_host, $db_user, $db_pass, $db_data);
+ /// @todo refactoring during https://github.com/friendica/friendica/issues/6720
+ $basePath = \Friendica\Util\BasePath::create(dirname(__DIR__), $_SERVER);
+ Factory\DBFactory::init($basePath, $a->getConfigCache(), $a->getProfiler(), $_SERVER);