Fixing bug in CoverArtDAO::deleteUnusedCoverArts()
- it was checking the database in a wrong way.
- it's important do it because this method is mainly called during the descontruction. As mixx can try destroy DAO classes more than once, the database can be not valid and it could introduce query erros.