can now extract from stats DB to CSV file