db.export_to_csv_file(s) exports database to a file cStringIO is a in memory file, it is a standard python module/class http://docs.python.org/library/stringio.html
and at the end you get the value from it (a big string) -- To unsubscribe, reply using "remove me" as the subject.

