bulk commit of all the changes