mongodb adapter extracted to separate package