Homogeneous distributed database and heterogeneous distributed database