Better XML dumping for large projects

More efficient, cleaner code for exporting into multiple project
repositories. Needed for using GitHub with big project datasets.
UTF-8 connection for project update

Make sure the database connection speaks UTF-8.