Jdbc updates

I think this would be easier to read if you define the field `long arrayOffset = index -1;`