Resolve Database#transaction always returns true