Add MongoDB support, thanks to Kevin Lewis, Eric Lubow.