remove duplicate id's and created db