Change to writeEditAlbum.php to prevent duplicates in albumpermission table