Added MongoDB support.

I've opened issue #81 related to this PR