add validation to QRESYNC params, fix bug with SELECT HIGHESTMODSEQ
detection