Predictive Maintenance Framework for a Vehicular IoT Gateway Node Using Active Database Rules