Created GenericDatabase class and updated SensorDataRule class