Fixed issue #74: Migrations can't be applied to database

Issue fixed, edml models fixed and packed back. Tested migrations backward up to InitialCreate and forward. This fix must be applied before deploying to production server.