photo archive table php changes