Hey Chris,
I did your changes, the Cron Job works fine I tested it, however I'm still getting a MySql error.
Code:
Invalid SQL:
UPDATE user SET downloadcount = downloadcount + 1 WHERE userid = ' . Array['userid'] . ';
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'userid'] . '' at line 1
Error Number : 1064
Perhaps PixelFX will be kind enough to share his code?