update id of each agency