add support for zip and bz2 files to sql and table generator