Homogeneous and heterogeneous database