Includes test for printing db contents to csv file