videodb: fix SQL query in CleanDatabase() not considering NULLed fields
Merge pull request #3698 from Montellese/videodb_cleanup_sql_fixes

videodb: SQL query fixes for clean database