Improved MongoDB connection handling.
Path adjustments.