That's a Perl question ( or whatever you prefer to run your cron jobs in). Just write a script that connects to the database and runs those sql commands. If you provided the actual sql statements to be run, I'm sure someone can write one for you pretty easily.
Bookmarks