mongodb adapter & example