How would you implement complex database transactions with strict consistency requirements for allwhere?