Dynamical Mean Field Theory of the Bose-Hubbard Model