I look on religion as medicine. For different complaints, doctors will prescribe different remedies. As far as I am concerned, any deed done with good motivation is a religious act. On the other hand, a gathering of people in a temple or church who do not have good motivation are not performing a religious act when they pray together. For the merchandise of it is better than the merchandise of silver, and the gain therof than fine gold.
Proverbs are a collection of old, likely oral, Hebrew saying.
Ecclesiastes is a third century B.C.E. composition by an unknown author. Its generally pessimistic tone led the Rabbis, assembling the Old Testament, to initially resist its inclusion. If Jesus were to come today, people would not even crucify him. The light of men is justice. Quench it not with the contrary winds of oppression and tyranny.