Update sugar-web, add write method