Added an export feature to export data from entities