sql struct update