Physically there is no relationship between density and viscosity. Viscosity can be measured by noting the speed of flow of a liquid. There is a relationship between viscosity and heat of the liquid. Increased heat of the liquid increases speed of viscosity or flow. Density is not affected by these operations.