Artificial gland structures using bioreactors