Add settings that only allow to set the RAS server
Use the server from the settings
Set the default preference values at the first startup
Don not try to load from the database if the credentials are empty

In fact, without credentials, the database could not contains any data.
Sync with the server when the Login is successful
Do not relaunch the login activity if it fails

INtsead print a message and let it go.