creating csv in parts for large data