QCD potentials with dynamical quarks at finite temperatures