Refactor `receipts_graph` Postgres transactions to stop error messages.