Better Input, Better Output: Improving photometric redshifts by enhancing training data and optimizing observations