fixed contacts migration when running against an empty database