modify the cat sql