Finish refactoring /submission API
Merge remote-tracking branch 'origin/refactor-db' into refactor-db

* origin/refactor-db:
  fixed primary key creation for ReferenceSets