add indexes by default on new tables
return error on lookup of non-existing doc
Merge pull request #10 from tsloughter/master

This is not a crass PR