Add indices for types.qualname, functions.qualname, variables.qualname,
typedefs.qualname, refs.refid, and decldef.defid.

This speeds up queries like +function-ref.  I've seen about a 30x improvement.
Add TODO comment about making the index on files.path unique.
Add indices on several columns to speed queries 30x.