catch sql exceptions in replaceRRSet and replaceComment