Calibration of the MACHO Photometry Database