Improved format of JSON responses

and fixed description error (typeof Host should be a String too) in MongoDB connection configuration