add cache of uploaded photos to local db