Don't make up history in getHistory

Add tests for CountHistoryMySQLDAO and insights to handle missing vis_datapoints.