For speed we should probably do 

```
psi.index_package(data_dict, defer_commit =True)
```

 and then at the end do a single commit.

```
psi.commit()
```

The commit takes a long time i.e about half a second each time you do it.