A novel determination of the local dark matter density