[WIP] add support for secondary indexes

I think we should actually do this earlier in createTable, before even storing the schema. Maybe create a function called validateSchema that both validates & normalizes the passed-in schema?