@staabm why are you passing the `$result` only if it is a "true" value? So for example, it is not possible to return the affected rows because if it's `0` the transaction will return `true`.