catch sql exceptions in replaceRRSet and replaceComments
Merge pull request #1324 from mind04/query-throw

catch sql exceptions in replaceRRSet and replaceComment