add check so that method does not depend on database info.
make app less reliant on database for XML export