Adapting for mongo