added MongoDB support