Adding DB storage for deviceIds