Creating and storing curves in tables