Fix constraint failures on song deletion

Deleting songs from the database is rare, but I sometimes do it when troubleshooting problems in the playlist.