// if the realOffset is not null, it means we are not at the index 0 of the table
// so now uses realOffset
if(sdbCtx.realOffset >= 0){
QueryOptionOffset offset = (QueryOptionOffset)query.option(QueryOptionOffset.ID);
offset.activate();
offset.offset = sdbCtx.realOffset;
}else {
// resets realOffset to 0 because it was negative
sdbCtx.realOffset = 0;
sdbCtx.noMoreDataBefore = true;