If a transaction is already open here, we will lose it in this assignment. Should probably check and commit it first.