Home Sports Win against floundering Cowboys is just what 49ers needed to get right