Changing PointValueDao.getLatestPointValue(int) with new query.