CSV export of the current state of the database