First you add
foo
and then (later) you modify it. That could be a problem if database is accessed by another client and client expect bar
to be present or client can modify/delete foo
himself. We don't know.