Add Sensor Settings to database, Error avoidance in server code.