don't write finished in database if no workflow id is saved.