Update xml form sql add hooks