The local extragalactic velocity field, the local mean mass density, and biased galaxy formation