Add index, insert

They appear to be working, maybe flesh out tests for insert to hit
corner cases.