Nitrates could be just from your regular tap. Test it sometime to see if that is where it is coming from. 5ppm isn't bad on them and there really isn't anything you can do about it. Partial water changes won't really lower it that much since it is already pretty low. Guppies sometimes tend to die easy due to bad breeding and such, so you may have just gotten a bad batch or something. Did you get all of these fish from the same store? If so then maybe that was just as long as they would live due to circumstances you can't control.
Brad