Controlling atom-atom interactions in optical lattices