Writing advs to mongo