Change handling of edits and revisions, so that we point from the revisions table to the grid-tables, and so that we don't do unnecessary insertions/updates.