Adds extraction and migration of hit counts from legacy to cnx-archive.
Updates the optimization tables.