If the caller calls insert inside their own transaction, you don't want to open up a new database connection and transaction, you just want to reuse the database connection's currently open transaction.