generalize the DB index beyond prefixes
rename 'assertions' to 'edges' in the index
WIP: pure-Python lookup methods and API