update some part of sensor to db (still suffer bug)