Added chunkedRead wrapper for reading a large number of rows