Refactored Nosql architecture.