added support for flat tables

If flat tables are activated during import, an Exception is thrown because flat and eav tables use different interfaces