Changing structure of message envelope. Considering ways of effectively handling SQL connections and transactions.