What is stored on the phone and what on the server
All of your data lives in two places — on your device, or devices if you use more than one phone, and on the server.
The server holds a copy of the same records, so that you can open them on another phone and not lose them when you change devices.