The origin, evolution, and the fate of gods

What is the origin of the concept of god(s)? How did the concept evolve? If there is no silicon heaven, where do all the calculators go…