Quantum Phase Transitions In The Bose Hubbard Model And In A Bose-Fermi Mixture