I'm not very familiar with SQL, but it seems you're deleting the row before you even click the button.