@Override
	public JSONObject addPUserPollActivity(String userId, String name,
			String option) throws JSONException {
		boolean isSuccess=false;
		JSONObject mainobj=new JSONObject();
		try {
			pm = PMF.get().getPersistenceManager();
			Query query = pm.newQuery(Poll.class, ":p.contains(pollName)");
			List<Poll> result = (List<Poll>) query.execute(name);
			if (result != null)
				if (result.size() > 0) {
					result.get(0).addCount(option);
					
				}
		} catch (Exception e) {
			LOGGER.log(Level.SEVERE, e.getMessage());
			mainobj.put("Response", "Error");
			return mainobj;
		}
		
		//Now adding user attempted status to User DB
		try {
			pm = PMF.get().getPersistenceManager();
			Query query = pm.newQuery(User.class, ":p.contains(userId)");
			List<User>result = (List<User>) query.execute(userId);
			if(result!=null)
				if(result.size()>0)
				{
					isSuccess=result.get(0).addUserPollActivity(name);
					if(isSuccess)
					{
						mainobj=getPollStatus(name);
					}
					else
					{
						mainobj.put("Response", "Error");
					}
				}
			pm.close();
		} catch (Exception e) {
			LOGGER.log(Level.SEVERE, e.getMessage());
			mainobj.put("Response", "Error");
			return mainobj;
		}
		
		
		return mainobj;
	}