fixed newID primary key issue