Convert db3 to csv