refactor survey using PHDB genereic access