Now recording if task is in the pool or not in the db.