A simple implementation of transactions in a DB system. University exercise, nothing serious.