upgrade dat
upgrade dat and modify primary columns