anchor.diff:  
   
   		Class.forName("org.postgresql.Driver");
  -
  -		c_conn = DriverManager
  -				.getConnection(
  -						"jdbc:postgresql://ec2-23-21-185-168.compute-1.amazonaws.com:5432/ddbj4k4uieorq7?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory",
  -						"qwovydljafffgl", "cGdGZam7xcem_isgwfV3FQ_jxs");
  -		c_pstmt = c_conn.prepareStatement("SELECT * FROM categories");
  +		c_pstmt = conn.prepareStatement("SELECT * FROM categories");
   		c_rs = c_pstmt.executeQuery();
   %>
   	
  
positive.code: try
  {
  	try{Class.forName("org.postgresql.Driver");}catch(Exception e){System.out.println("Driver error");}
  	conn = DriverManager.getConnection(
  			"jdbc:postgresql://ec2-23-21-185-168.compute-1.amazonaws.com:5432/ddbj4k4uieorq7?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory",
  			"qwovydljafffgl", "cGdGZam7xcem_isgwfV3FQ_jxs");
  	stmt =conn.createStatement();
  	stmt_2 =conn.createStatement();
  	stmt_3 =conn.createStatement();
  	/**SQL_1 for (state, amount)**/
  	int c_offset = (request.getParameter("c_offset") != null) ? Integer.parseInt(""+request.getParameter("c_offset")):0;
  	int r_offset = (request.getParameter("r_offset") != null) ? Integer.parseInt(""+request.getParameter("r_offset")):0;
  		
  	String SQL_1="select p.id, p.name, sum(c.quantity*p.price) as amount from products p, sales c "+
  				 "where c.pid=p.id "+
  
negative.code: 	String cid = ""+request.getParameter("cid");
  	String pid = ""+request.getParameter("pid");
  	String keyword = ""+request.getParameter("keyword");
  	Connection conn;
  
  	int c_offset = (request.getParameter("c_offset") != null) ? Integer.parseInt(""+request.getParameter("c_offset")):0;
  	int r_offset = (request.getParameter("r_offset") != null) ? Integer.parseInt(""+request.getParameter("r_offset")):0;
  	
  	keyword = (keyword.equals("null"))? "":keyword;
  	
  	conn = DriverManager.getConnection(
  					"jdbc:postgresql://ec2-23-21-185-168.compute-1.amazonaws.com:5432/ddbj4k4uieorq7?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory",
  					"qwovydljafffgl", "cGdGZam7xcem_isgwfV3FQ_jxs");
  	PreparedStatement pstmt = null, d_pstmt = null;
  	Statement statement = null, d_statement = null;
  	ResultSet rs = null, d_rs = null;
  	String sql = null;
  %>	
  
  <!-- category menu -->
  <%
  