have used the d5000 before but quickly sold it to get the d3100 (which i then sold to get the d5200 lol) a few years ago.
what i realised is that you have to enjoy the experience of using the camera to enjoy photography. the D5200 is about $150 more expensive that the D5000 but the experience of using it is so very different. It focuses so much faster, have a much higher resolution, sharper display, articulating screen makes more sense etc. I liked the experience so much that I shoot almost 5x as much photos on the D5200 compared to the D5000 in the same period of time.
What i want to bring across is no matter what camera you buy, dslr, mirrorless or compact, you need to enjoy the experience of using the camera to enjoy photography. that is the most important.