Moved generate_export into export model and out of rake task