Bug migrate day start end

More migration fixes...
(this time when migrating from an actually filled database)