public void delete(String table, int id) throws Throwable {
    	try {
    		if(!table.equals("")) {
    			Statement st = con.createStatement();
	    		String query = "DELETE FROM "+table+" WHERE id='"+id+"'";
//	    		System.out.println(query);
		        st.executeUpdate(query);
		        st.close();
    		} 
    	} catch(SQLException ex) {
    		throw ex;
    	}
    }