GetDatabaseStructure implemented as promised