Fixed some minor issues related to MongoDB provisioning.