I want to do the following:...Begin a transaction...insert data to a database...After the insert, submits data to an API endpoint with the newly added rows' primary key...Then commit the transaction...If the insert fails, nothing will be done and everythi...