Small refactor in eventorxml processing
Some more tests for db updating scripts
Fixed a bug after testing in db updatescript