distributed database building system