Unnecessary multiple calls to `DatabaseManager::getConfig`

Just forgotten, I think.