[978] Migrates existing tasks into the archive_tasks table