Allowed indices to always be mapped with efficient database queries

Fixes #35.