Switched table type to csv