Conductivity of carbon-based molecular junctions from ab-initio methods