[Working] documents upsert