While water changes will help, they're more of a band aid than anything else IMO. You want to find out what's causing the nitrates to begin with and remove that first. This could be a dead fish or invertebrate, leftover food, a bunch of poop/detritus or just bad source water. (tap) Nip it in the bud so to say. GL.