catch sql exceptions in replaceRRSet and replaceComments