Implemented multiple insert per transaction.

Improved performance.