Refinements of mongodb adapter