[WIP] add support for secondary indexes

Makes sense.