Script to generate melted data frames for bulk import to an sqlite database