iWorking on uniqueness of key in db