Wrap all inserts into transactions.
