Added cursor method to mongo