Update SqlUtils to improve validation that queries are select only, in order to fix bug reported in REPORT-585