Database viewing in main window implemented