added migrations, added deleting old stats for percentage stat data fetching