public boolean updateSongMetadata(MusicObject newEntry,MusicObject oldEntry) throws SQLException {
		
		if (connection == null) {
			connection = getConnection();
		}
		
		if (updateSongStmt == null) {
			updateSongStmt = connection.prepareStatement("UPDATE org.MUSIC " +
					"SET song_name = ?, "+
					"file_hash = ?, "+
					"file_size = ?, "+
					"album = ?, "+
					"artist = ?, "+
					"song_year = ?, "+
					"track_on_album = ?, "+
					"modified = ? "+
					"WHERE file_name = ? "+
					"AND folder_path = ?");
			
					
		}
	
		try {
			log.info("Year: " + newEntry.getYear());
						
			updateSongStmt.setString(1, newEntry.getSongName());
			updateSongStmt.setString(2, newEntry.getMD5String());
			updateSongStmt.setInt(3, newEntry.getSize());
			updateSongStmt.setString(4, newEntry.getAlbum());
			updateSongStmt.setString(5, newEntry.getArtist());
			updateSongStmt.setInt(6, newEntry.getYear());
			updateSongStmt.setInt(7,newEntry.getTrackOnAlbum());
			updateSongStmt.setTimestamp(8, Utils.javaDateToSQL(newEntry.getLastModified()));
			updateSongStmt.setString(9, oldEntry.getFileName());
			updateSongStmt.setString(10, oldEntry.getFolderPath());
			
			return updateSongStmt.executeUpdate() == 1;
			
		} catch (Exception e) {
			log.log(Level.SEVERE, "The following error occurred when trying to add a song: " + e.getMessage(),e);
			closeAll();
			throw new SQLException(e.getMessage());
		}
	}