Magnetic and superfluid transitions in the one-dimensional spin-1 boson Hubbard model.