Adding atomic transaction to multiple db inserts