Track schema version for database migrations.

This PR prevents database migration to run twice (e.g. when multiple plone sites use the same database). It also updates existing DB-migrations.