Make export utility generic to any datastore if specified