I am going to ask you first what do you plan on using it for? Travel? Personal? Professional? Low light situations? What would you like your camera to do?
Knowing a little more will help give you a better answer.
In general, any Nikon SLR will be a great camera. It looks like the ISO on the 5000 goes up to 3200 which means the images will likely be full of noise at that level. I am not sure what the highest decent ISO setting is... im guessing around 800~1000. This will be important depending on what you want to do.
The majority of your expense will be in good glass. Typically, you purchase a Nikon camera for the glass. Nikon makes some of the best macro lenses you can buy. Macro lenses typically come in 60mm, 80mm, 90mm, and 105mm. Each will have a different working distance meaning how far you will need to stand from your subject. The higher the mm the farther you need to stand away.
Tripods are a great tool. If you plan on shooting in low light, using longer shutter speeds (slower than 1/60), bracketing, or macro photography... it is a must. You will also need to decide if you want it compact for traveling, a working height, and support strength. Tripods are rated for different weights and you will want a heavier duty one if you plan on using bigger lenses.