Schema and physical design in NoSQL databases