persisting process state to db and resume process begun