Fix issue with offset in database paging iterator.