add db transactions