added transaction support for mass data insert