removed FromJSON in ToDynamo typeclass, added Show constraint on functions