Towns and cities may recover from the estates of persons assisted in like manner as counties under N.H. Rev. Stat. § 166:19.