Added logic to collect all data per connection, added csv export