Add upsert support for studio