Fix bug where we ignored event_edge_hashes table
Add beginnings of upgrade script