Moved playlist cleanup into clean_db() so update() can benefit from it
as well.