Implemented updating data, but as the measurements rest service doesn't work, this won't work yet