Fixed the snapshots cleanup to be compliant with MySQL
Merge pull request #222 from mremi/fix-cleanup-snapshots

Fixed the snapshots cleanup to be compliant with MySQL
Merge branch 'sonata/master'