Fixed SQL in update hook.