Cloud data management for mobile apps