Use upsert instead for simpler code.
Merge branch 'dev' of github.com:materialsproject/MPWorks into dev