[#3] Added transactions to upgrade and downgrade