Line bundles, connections, Deligne-Beilinson and absolute Hodge cohomology