Nearly got rel insertion working
Now have index and map check for rel insertion