mongodb integration wip