A viscous quantum hydrodynamics model based on dynamic density functional theory