private HashMap<String,String> readQueryFromTable(HashMap<String,String> propertiesMap)    {
        List<HashMap<String,String>> propertiesMapList = transactionQueryHistoryDao.getTableProperties();
        for(HashMap<String,String> map : propertiesMapList) {
            QueryType queryType =   QueryType.valueOf(map.get("queryType"));
            String fromTime = map.get("timestamp").substring(0,10);

            switch (queryType)  {
                case IDEA:
                    propertiesMap.put("query.idea.from_time", fromTime);
                    break;
                case COMMENT:
                    propertiesMap.put("query.comment.from_time", fromTime);
                    break;
                case REPLY:
                    propertiesMap.put("query.reply.from_time", fromTime);
                    break;
                case TELL_A_FRIEND:
                    propertiesMap.put("query.tellafriend.from_time", fromTime);
                    break;
                case REVIEW:
                    propertiesMap.put("query.review.from_time", fromTime);
                    break;
                case EMAIL_HISTORY:
                    propertiesMap.put("query.emailhistory.from_time", fromTime);
                    break;
                case TESTIMONIAL:
                    propertiesMap.put("query.testimonial.from_time", fromTime);
                    break;
            }

        }
        return propertiesMap;
    }