implemented secondary indexes creation logic
Adding support for index updates in _put and cleaned last patch