updated export function to support reference type data exporting

Merged Vivek Naik requested to merge fdb_export_reference_data into devbranch

Merge request reports