1st version of getCharityDetails function