Filter tables during import

...instead of filtering in the processing stage. This significantly
speeds up the processing.