Add database primitives for starting and ending a transaction