Updated the Mongo examples as per the latest API