Set status for mysql transactions

Status is set to "OK" in case of a successful MySQL transaction.
Otherwise, it is set to the error message.