restoring active export

- removed awkward testing mode within exportdb method
- moved gzip compress to file util
- generalized gzip compress

- exporter test is a work in progress