public boolean insertEntry(String name, String file)
    {
    	System.out.println(this.getClass().toString()+"::insertEntry("+name+","+file+")");
    	fileName = makeSQLCompatible(file);
    	
    	// if file already in list, stop
    	if(getIndexOf(file) != -1)return true;
   
    	//System.out.println("In insert: args = " + name + ": " + file);
		Mp3File mp3file = null;
		try {
			mp3file = new Mp3File(file);
			if (mp3file.hasId3v1Tag()) 
			{
				ID3v1 id3v1 = mp3file.getId3v1Tag();
				title = makeSQLCompatible(id3v1.getTitle());
			    artist = makeSQLCompatible(id3v1.getArtist());
			    album = makeSQLCompatible(id3v1.getAlbum());
			    genre = makeSQLCompatible(id3v1.getGenreDescription());
			    release = makeSQLCompatible(id3v1.getYear());
			    comment = makeSQLCompatible(id3v1.getComment());
			    
			}// end if
			else if(mp3file.hasId3v2Tag())
			{
				ID3v2  id3v2 = mp3file.getId3v2Tag();
				title = makeSQLCompatible(id3v2.getTitle());
			    artist = makeSQLCompatible(id3v2.getArtist());
			    album = makeSQLCompatible(id3v2.getAlbum());
			    genre = makeSQLCompatible(id3v2.getGenreDescription());
			    release = makeSQLCompatible(id3v2.getYear());
			    comment = makeSQLCompatible(id3v2.getComment());
				  
			}//end elseif
			
		    duration = mp3file.getLengthInMilliseconds();
		    duration_str = convertMilliSeconds(duration);
		    //System.out.println("insert into " + name + " values ('" + title + "','" + artist + "','" + album +"','"+ genre + "'," +duration + ",'" + file + "')");
		
		} catch (UnsupportedTagException e1) {
			// tag can't be read
			// alert user that song can't be added to playlist
			System.out.println("UnsupportedTagException");
			return false;
		} catch (InvalidDataException e1) {
			// unsupported format
			// alert user to invalid file
			System.out.println("InvalidDataException");
			return false;
		} catch (IOException e1) {
			// file not found
			System.out.println("IOException");
			return false;
			//e1.printStackTrace();
		}
		
    	
    	try {
			stmt = conn.createStatement();
			//System.out.println("insert into " + name + " values ('" + title + "','" + artist + "','" + album +"','"+ genre + "',"+"'"+release+"','"+comment+"','"+duration_str+"'," +duration + ",'" + fileName + "')");
			//stmt.execute("insert into " + name + " values ('" + title + "','" + artist + "','" + album +"','"+ genre + "'," +duration + ",'" + fileName + "')");
			stmt.execute("insert into " + name + " values ('" + title + "','" + artist + "','" + album +"','"+ genre + "',"+"'"+duration_str+"','"+release+"','"+comment+"'," +duration + ",'" + fileName + "')");
			//System.out.println("insert into " + name + " values ('" + title + "','" + artist + "','" + album +"','"+ genre + "'," +duration + ",'" + file + "')");
			
	        stmt.close();
	        //updateUI(name);
		} 
    	catch (SQLException e) 
    	{
			// TODO Auto-generated catch block
			//e.printStackTrace();
			return true;
		}
    	fireDataBaseEvent(fileName,"insert");
        return true;
    }