Implement Sergey Yakovlev's suggestions & fixes

KO standards & defined() check
Fallback to Mongo class if MongoClient doesn't exist
FIX: Sergey's github profile