Enforce uniqueness in database level