Improved speed of table updates.

Updating tables was the limiting step is using large data sets. Table
updates have been made more efficient to account for this.