I'd rather there wasn't a DB. I know it saved time and effort coding wise to do it this way. Future changes will require updates to the db, and that can't be automated the way the current scripts are.
option2 crontab this: mysql -u user -D winapi -H >winapi_stats.html < test.sql
now test.sql is a file that can be changed and the user is the only thing hardcoded in the crontab....