Update insert to replace existing document