regdb: get the seqnum before the record, to not miss something