save the old photcode table explicitly; update photcode table with sys errors and bitflags used by relphot & relastro