Fix #15 add validation to db.
Merge pull request #36 from hash4di/uniq-validation-in-db-#15

Fix #15 add validation to db.