Change inserts to upserts in mongoclient

When running workloads that use the "insert" operation, we get a lot of duplicate key exceptions from the server. Changing to upsert to avoid these exceptions.