modified MongoCursor constructor so that it is in PHP instead of native C++