Set DB state to 2 for jobs which completed but the db doesn't know it