Only update sets that have changed
Store order of photos in sets

The order is stored by prepending the photoid with a counter