Fixes #414 Add index for getting a doc with doc and rev id

Add an index on revs table for getting a document with doc and revision ID.