Dipolar Molecules in Optical Lattices