Some fixes for MongoDB example