added reading a survey from the DB and render