Filter empty columns from import (eg. xlsx seems to include all cols upto AZ even if empty which causes saveToDatabase to crash with duplicate 'empty' field names).
This also simplifies so that we only read the datafile once for both headers and data.