Use sql to store the tasks data