Using mysql transactions

ACID