Introduced mongoContext that resolved previously occuring problem with grater