Will comment the code on this - but the intent is to ensure consistency between the two tables by undoing the first insert if the 2nd one fails