Move transfer and transfer_array to DatabaseExporter