Dump upgrade

attempts to dump a set of publish events in the correct order to satisfy relational constraints, without dumping too much. Incremental update ability