while(r.next()){
titles.put(r.getInt(1), new String(r.getBytes(2),"UTF-8"));
}
it.reset();
count = 0;
while(it.next() && count < limit){
int id = it.getId();
response.getWriter().append(id + "\t" + titles.get(id) + "\t" + df.format(vals.get(id)) + "\n") ;
count++;