now using transactions for bulk inserts