sql edit for clearance