Rebuilding certain scripts and reworking the logic to put xml files into the DB