insertTransaction method