How to fix 25002: branch_transaction_already_active in PostgreSQL | DevErrors