Use transaction when updating serial