Adds CKAN's missing upsert function