SMS: principles of distributed database