The Galactic system of old open clusters: age calibration and age-metallicity relation