* simplified the .schema implementation
* improved .indexes query