db changes for sub org feature