Pātuhitia tēnei: principles of distributed database