row refernce fix for STI datasets, deleting old relations on import