added latest modifications to mongodb backend