a script to keep the DB record be synchronize with the xml file