added adapter for mongodb