Very simply put, you fell in love with the idea that queen up = instant checkmate. You thought you were winning, ignored your development (9. b4?!)/king safety/everything else going on in an attempt to threaten mate, and wound up mated yourself.
If you're a queen up, just play a normal safe game as you usually would! He'll lose eventually, have faith in that. Also remember that you were only a queen for a minor up, and that if you don't use the rest of your material it's black who has good chances. Develop!
To list a few improvements, 9. e3 (develops), 11. e3 (0-0-0 was crazy, putting your king in potential danger), 16. Be2 (develops, doesn't hang exchange), 18. Kxd1 (you're still up Q for R+4P after 18...Nxd4, but I'd rather play black...), 22. Ke2, 24. Kc4 (why run into danger?)
does this game make me a better chess player at all?