sql write job update 2