script to dump reference tables in a re-importable format.