getCandidate method in CandidateDao