migrate buildings and histories