Fixing the db for unique