add hash key to key schema

the table key schema requires a hash key. Add `layer` to be the hash key, with the idea that the hash key would define the data layer.

removed the secondary index, since the primary index already index id. 

fixes #7