Might be good to put these two lines in a transaction. No sense making an expensive operation even more expensive...