added pagination for getStream and getFirehose on mongodb driver