You may write outstanding code. And you may have something
there on the millionth of a second. But you have to assume that
some strange things may happen ...
someone adds a check constraint on one of the tables
and now you're WRITE fails for a reason alien to your code.