If potatoes turn out gummy it's usually because they've been mixed too long and too hard. It's best to break them up before adding other ingredients and use a potato masher on low setting or a hand mixer. Try not to beat them too long or they'll turn gluey.