Density functional study of hydrogen-bonded systems: from gas-phase adducts to catalytically relevant systems