photos retrieve, schema upgrade