Add a real-world example of how to implement transaction support for postgres