By mistake started top level transaction in constructor instead of start.
This was failing since @db was set to nil