Thermodynamics and heavy quark potential inNf = 2 dynamical QCD