The Masses of Stars with a General Catalogue of Dynamical Parallaxes