Revert "make cursor forward only"
It breaks the number of rows calculation

This reverts commit beb03861422e6a7f36721d84ef19370b11dd9097.