Enforce uniqueness in the database.
Merge pull request #1 from rjackson/use_database_for_uniqueness

Enforce uniqueness in the database.