Updates including MongoDB connection (untested and incomplete).