refactored getExportFields for performance and to limit output to static db fields