Fixed database migration from previous BETA1 version.