Fix up council references, skip invalid records

It would be good to add some output here I think.