DatabaseManager.registerDatabase(database);
col = DatabaseManager.getCollection(URI + "/" + XUPDATE_COLLECTION);
if(col == null) {
Collection root = DatabaseManager.getCollection(URI, "admin", "");
CollectionManagementService mgtService = (CollectionManagementService) root.getService("CollectionManagementService", "1.0");
col = mgtService.createCollection(XUPDATE_COLLECTION);
UserManagementService ums = (UserManagementService) col.getService("UserManagementService", "1.0");
// change ownership to guest
Account guest = ums.getAccount("guest");
ums.chown(guest, guest.getPrimaryGroup());
ums.chmod(Permission.DEFAULT_COLLECTION_PERM);