Fixing the stats.sql file