Calender Dataset

Change this line:system.db.runPrepUpdate("INSERT INTO Calender_Dataset (startDate,endDate,displayColor,display) VALUES (?,?,?,?)",Mstart_time,Mend_time,Mcolor,Minfo)to this:system.db.runPrepUpdate("INSERT INTO Calender_Dataset (startDate,endDate,displayColor,display) VALUES (?,?,?,?)", [Mstart_time,Mend_time,Mcolor,Minfo])Notice I added square brackets before and after the variables to make a list. The second argument of the runPrepUpdate is a list of values to substitute for each ?.