Fixed issue: MongoClient::$connected is deprecated, replaced self to static