Yet another db in transaction problem fixed.