Astrometry and Celestial Mechanics