changes to pass config dict along to routine get_data_columns, and two modifications to query that dict instead of missing global vars