The data should be stored in client neutral way. That means it should be on server, so that it can be accessed from any type of client.
Typically it's designed such that different type of clients interact with a controller
servlet to get information which in turn retrieves it from database server.
Hope it helps.