public String updateOffline(Product p) {

		try {
			String sql = "UPDATE stock SET productName = ?, count = ?, price = ?, feature = ? where productId = "+p.getpId();
			
			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 ps.toString();

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

		}

		return "";

	}