task revised into table new sql