fixed enveloppe definitions, adde update method on the querybuilder