added mongoContext, fixed db setup
api changes