public int add(Product p) {

		try {
			String sql = "INSERT INTO stock (productName,count,price,feature) VALUES (?, ?, ?, ?)";
			PreparedStatement ps =  StatusController.connection.prepareStatement(sql);
			ps.setString(1, p.getpName());
			ps.setInt(2, p.getAmount());
			ps.setDouble(3, p.getPrice());
			ps.setString(4, p.getpFeature());
			//ps.setQueryTimeout(5);
			ps.executeUpdate();
			ps.close();
			return 1;

		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();

		}

		return -1;

	}