Functional characterization and structural basis of a reversible glycosyltransferase involves in plant chemical defence