Merge mongodb plugin

kept commit historical