Using mongo's upsert instead of update to auto-insert documents.