Completed mysql script, added XML_URL parsing