Linking DatabaseManager to UI