migrate embedded positions to positions table