Transactions in postgres are the bane of my existence