Testing how to cancel sql safely