Wrote a helper function for updating metadata into a bunch of collections