Migrating stats data. Refactoring kpds tables