since I was 15 (I'm 23 now) I've had so many goldfish, none ever lasted more than 9 months and most much less, even though I thought I always did everything by the book. Now I've had a pair of fantails which have now lasted for 2 1/2 years, I'm doing nothing different. One thing, you mention that you have a small tank, I don't know the dimensions but with 5 fish you probably are overstocking. A general rule is 1 inch of fish per 24 square inches of surface area. And this is when they are fully grown. Don't give up on them, if you've just got one left it is probably lonely. If I were you I would introduce fish back slowly. Just leave it at two fish for a month, then if everything is ok add another if there's enough room. And don't pick fish in the pet shop if any of the other fish in the tank look sick.