adding unique id to db