Better Job = More money = Higher standard of living = Less of a need for religion
and that's exactly the part I didn't agree with.
Believing that if you're nice and do your job God will be nice and give you a place in heaven or believing that if you're nice and do your job you'll get more cash(to buy a new car for instance) fall back on the same thing.
You want to be happy; you don't know exactly what'd make you happy, you don't bother to do your own thinking, so you fall back on a recipe which supposedly works.
Imho organized religion means exactly this mechanics wise: follow a recipe(do actions a1 to an/don't do actions b1 to bm) and you'll be rewarded by something supposedly good(the other version being "you won't be punished"). Take a recipe for granted, follow it without thinking if you agree with it or not.
And that's why I argued education didn't make much progress and that's why I don't find any relation between having more money and less religion. Money by itself is a religion; probably 98-99% of the population if asked, will tell you they want money - most of them as 1st thing - despite that they can't articulate anything even remotely logical as in why they want them...
Neither humans in general, nor the education system made any significant progress as far as developing logics/thinking and humans are as prone as before to "buy a solution" instead of trying to think about one which is exactly what a religion does.
And the fact that science proved Earth ain't the middle of the universe, it's totally irrelevant. It's merely a problem of adapting the lines and stop preaching that it is.... or be replaced by a new religion which doesn't say that... but that'll be a religion nevertheless. That's afterall why religions keep swapping/mutating/etc.
N.b - I'm not advocating poverty, I'm just saying that organized religion will disappear when people will be less prone to take things for granted, which is something that money simply can't buy. It's not in their function...