Mongo plugin (fixes #436)