correction log for sql exception