Extract MongoDB documents and Output CSV Files