Refactored to display only if there are cogent datapoints. Added MySQL