Finish mongodb adapter.