Conversion of SensorSimpleDatabaseAggregator sensor to Plugin.