A working draft that sends curve data to a sqlite database