Direct correlation functions and the density functional theory of polar solvents