separate insert for transactions into TransactionHandler class