Run update script only once, not in a loop.
Since this script will most likely be run periodically using cron, rather than daemonised.