Update table creation code
Handle errors when HTML contains invalid posts