editing sql statement handling