Adds legacy_id fields to the work and image tables of the sql schema, and resets primary key defaults to 1