CGI Interview Question

How do you code for a database transaction to satisfy the ACID Properties