InsertFromTableToTable duplicate error fixes