Add fix for ticket 14940

Fix DeleteMovie to run SQL to remove writerlinkmovie.