tasks now finished except for the sql query