Tidied up the code, now using more gophers to do the database work, moved to streaming the files, put the export directory in the config