Remove some sql on save