Fixed tag update function to allow for multiple tag updates to the same file (before there were document update conflicts with the couch when trying to do this).