Refactored the uniqueness validation
Refactored the uniqueness validation

This has been switched to use specific queries rather than instantiating
additional active record objects.
Currently the queries are within this validation and this should change
prior to merging.

alphagov/publishing-api,alphagov/publishing-api