Fix hook_update query