Update on sqlite to csv