[altsys] use `XoopsDatabaseFactory::getDatabaseConnection`

replace deprecated method `Database::getInstance` to `XoopsDatabaseFactory::getDatabaseConnection`