Added dependency injection in Core\Sequence so that the SiteMigration plugin can provide an alternative database
Clarified test
Added Piwik\Sequence::exists()