Add WriteConcern to json config file. You can set value in w, wtimeout, j.
Refactor code to get instance of MongoClient and DB.
Add try-catch-finally in Queries.