Added posthistory table
Improved error message for unexpected columns