A Data Management Middleware for ITS Services in Smart Cities