Add repository api. DML role changes to singular.
Add adv upload