Reordering tasks, delete the triple store before removing database.