Generating DB stats using native Mongo DB driver instead of shell out.