Refactored to display only if there are cogent datapoints. Added field to mysql.