Add a controller base class with database transaction helpers