DeleteMovie needs updating to remove entries in writerlinkmovie, otherwise any updates to the list of writers for a movie may not be correctly reflected, as new entries will be append and old entries are not removed.
strSQL=PrepareSQL("delete from countrylinkmovie where idMovie=%i", idMovie);
m_pDS->exec(strSQL.c_str());
+ strSQL=PrepareSQL("delete from writerlinkmovie where idMovie=%i", idMovie);
+ m_pDS->exec(strSQL.c_str());
+
DeleteStreamDetails(GetFileId(strFilenameAndPath));
// keep the movie table entry, linking to tv shows, and bookmarks