fix the format in csv
add id when creating new devices
change delete by id