[WIP] add support for secondary indexes

Yes, I think we should be able to call the query generation part of _put recursively here.