A simple way of creating the MongoDB connection string from an object