Un-reversing the photos for pgsql(?)