some problems with migrate

Signed-off-by: Alexander Skjolden <alex@plastboks.net>