corrected viewing/DB connectoin