Generate csv from query of payment records by sequence.