I wouldn't be too sure about that. It's of course not through godly power that religion helps people but rather religion creates social rituals which allow people to connect with others in ways they otherwise wouldn't. They misattribute it to something religious but the social connection is the real reason why religion appeals to people.