Adds back data/cache purging
Renames ID_post to postid to keep consistency on plugin's tables
Updates tables indexes and fields, and queries accordingly, for consistency and better performance
Adds check to prevent custom html being used on plugin's stats page