Update and delete for transactions working