Improved XSPUtil and added some more types for Factory.getParentDatabase