Hall algebras, hereditary algebras and quantum groups