Fix for saving the playlist multiple times when adding files to it

When files are added to a playlist Playlist::UpdateItems() is called for every file that is still pending and thus Playlist::Save() is called multiple times in a row.
I also added a debug line when a playlist is saved to the database to avoid problems like that in the future.