DBSession transaction implementation, TODO