Added upsert checking changes from master. Fixed issue #12 eveFacWarStats::prepareTables() not deleting 'Factions' table.