Measurement of the J/psi meson and b-hadron production cross sections in p(p)over-bar collisions at root s=1960 GeV