Lookup tables and add-columns basic cases working.

TODO: resolve col ids in build-lookup-table