What can we learn from religion with regards to how to develop and preserve morality?
That we need fictional tales proclaimed as the unquesitonabl truth to legitimaze morality? I hope not.
That people are only moral because they expect to be remunerated for it? By holy salvation, passing on to heaven or whatever. Again, I hope not. Or rather, I hope the satisfaction of being and acting moral suffices.
That we need to cherish this morality in ritualized collective meetings? Probably helps a lot in deed, enforcing the individual codex by collective reassurance. A new humanist, atheist religion perhaps which offers a frame for such? I think that might be necessary to preserve morality. But it would require a very smart concept I am not sure does exist. Because where would such an religion draw is legitimacy from? Why should people give a damn? My answer: What established religion offer, as well: Support, understanding and help in practical matters. I think if humanity managed to establish such an enlightened form of religion, it would really be something.
But I think the most basic demand of morality is not something we need to look at religion to spot. It is IMO spot-able enough - which is the faith in something that is bigger than oneself. An ideal, which is adhered without wanting an immediate return in this life. And interestingly, that does sound very religion-like. But it is an religion without all the "silly" baggage attached to it. The pure essence of what can make religion a force for good. Ideals taking priority over immediate tangible gains.
So conclusion, it is wrong to say that people have to be religious to be moral. But right, that they need to uphold one of the key ingredients of religion.