videodb: use triggers to delete items from link tables
Merge pull request #5145 from Montellese/videodb_use_triggers

videodb: use triggers to delete items from link tables