. From all csv and pdf export  removed sql queries and passed  db_array and session