All Nikon cameras since the old times use the same F mount. So any f-mount lens will work on your camera.
However, only those with an integrated AF motor will be able to autofocus on a d5x00, and many old lenses won't be able to "tell" their aperture to the camera. So you'll have to use them in manual exposure, manual focus mode.
For night time photography, you'll have an advantage with a fast lens, that is with a large maximum aperture. If you want a zoom, a 18-55 or 17-55 zoom with constant aperture of f/2.8 will give you versatility, or a wide prime like a 24 or less will likely be faster.
The nd filter won't help you in night photography since you'll need all the light that you can get. Actually, filters in general shouldn't be that useful for night photography. An exception could be a gradual nd filter to darken the foreground if there are any lights. The nd and circular polarizer can be used in landscapes though.