Update database with unique ID for revisions