Modified batch update querry