Made everything use pgsql txid_current()