added MongoDB support for conditions