Physical and logical databases