Updated the statistics-gathering script for the dashboard to eliminate a bug in the mysql query.