https://kemalcodes.com/posts/database-tutorial-postgresql-transactions/
Database Tutorial #6: PostgreSQL Transactions and Concurrency