Data Management for IOT Systems