Regenerating tables and data, also adding content encoding to html (whoops)