update query for scheduled eindopnames and not for completed