making d primary key as id