anchor.diff:  
   			if(!cid.equals("null"))
   			{
  -					
   					try {
   						// Registering Postgresql JDBC driver with the DriverManager
   						Class.forName("org.postgresql.Driver");
  
positive.code: 					try{
  					Class.forName("org.postgresql.Driver");
  					statement = conn.createStatement();
  					sql = "DELETE FROM products WHERE product_id = ?;";
  					d_pstmt = conn.prepareStatement(sql);
  					d_pstmt.setInt(1, Integer.parseInt(cid));
  					int count = d_pstmt.executeUpdate();
  
negative.code: 					try{
  						Class.forName("org.postgresql.Driver");
  						statement = conn.createStatement();
  						//need a transaction to add in products and product_categories
  						sql =	"INSERT INTO products (name, img_src, description, price) " +
  								"SELECT ?,?,?,?";
  						d_pstmt = conn.prepareStatement(sql);
  						d_pstmt.setString(1, ""+request.getParameter("name"));
  						d_pstmt.setString(2, ""+request.getParameter("img_url"));
  						d_pstmt.setString(3, ""+request.getParameter("description"));
  						d_pstmt.setString(4, ""+request.getParameter("price"));
  
  						int count = d_pstmt.executeUpdate();
  
  