added getPageVersions table and upgraded table handling