I do not think that humankind posited gods to make themselves feel more important. Certainly in Judaeo-Christian tradition, humans are incorrigible sinners, fallen and generally a disappointment to their creator. Or as put by the prophet:
(Isa 55:9 KJV) For as the heavens are higher than the earth, so are [God’s] ways higher than your ways, and [God’s] thoughts than your thoughts.
If humankind was not indowed by God with an innate sense of trying to seek his creator, then I think one might better look at the human desire to understand the good times and the bad times in life–for which the prophet says:
(Isa 45:7 NRSV) I form light and create darkness, I make weal and create woe; I the LORD do all these things.
Or it might have come from the ancestors of the televangelists who discovered that if you spin a good story, people will give you money.
But as a person of faith, I think there’s something deeper going on.