Updates for viewPolls

get userProfile and getCategory_name by passing  primary keys