public void insert(String column[], String value[], String type[])
    {
    	if(conn!=null){
	        try
	        {
	        	
	            stmt = conn.createStatement();
	            
	            String query = "insert into " + table_name + " (";
	            for(int i=0;i<column.length;i++){
	            	query += column[i] + ", ";
	            }
	            query = query.substring(0, query.length()-2);
	            
	            query += " ) values (";
	            
	           for(int i=0;i<value.length;i++){
	        	   if(type[i].contentEquals("int"))
	     	            	query += value[i] + ", ";
	        	   else
	        		   query += "'" + value[i] + "', ";
	     	            	
	     	   }		
	           query = query.substring(0, query.length()-2);
	            query += " )";
	            stmt.execute(query);
	            //stmt.closeOnCompletion();
	            //
	        }
	        catch (SQLException sqlExcept)
	        {
	            sqlExcept.printStackTrace();
	        }
	        finally{
	        	try {
					if(stmt!=null)stmt.close();
				} catch (SQLException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
	        }
    	}
    }