Bugfix database actions not being part of transaction when using BTM