Issue #116, Handle last batch of INSERTs/UPDATEs

If there are transactions left over from the previous batch
inserts, then add them outside of the for(). Make the Log()s
report the actual number of records processed.