Added App.upsert to put away common code to update collections