validate uniqueness against permalink scope

@pswadi-zendesk @steved555 

before old records were invalid when updated since validation was global and did not mirror the db-index that is scoped to project_id for stages, also did not do validations when other project/stage was deleted

### Risks
 - None