Moved updating of the dispatch tables to a trigger, eliminates lots of DB round trips.