Moved updatedb.php, it'll be called by server-side cron monthly.
Added basic logging, updated comments.