a stab at fast-import/export support building on the 'import' branch from drh.