public void doPost2(HttpServletRequest request,
                   HttpServletResponse response)
	throws ServletException, IOException {
  		HttpSession session = request.getSession();
  String userName=(String)session.getAttribute("USERNAME");
  String picid  = request.getQueryString();
  	PrintWriter out = response.getWriter();
  String insert = "insert into unique_views values(" + picid + ",'"+userName+"')";
  
  Connection conn = null;
  try{
  conn = getConnected();
  	   Statement stmt = conn.createStatement();
           int success = stmt.executeUpdate(insert);
  }catch( Exception ex ) {
    //out.println( ex.getMessage() );
    //out.println("Did not insert");
	}
    try{
      conn.close();
  }catch( Exception ex ) {
          out.println("Did not close");
	}

  
}