fix db backporting in case of saved photos - https://trac.faunalia.it/omero/ticket/207