removing mongoContext and passing object into the crud function