fixed contacts migration when migrating against an empty database