Quiva offsets bug fixed

.coff field in DB index needs to be -1 when
undefined, all tests assumed it was 0.