fix mongodb plugin to work with recent mongodb versions