Clear the Local Database

Each time you redeploy a package on the Unwired Server, the client application should clear the local database. After clearing the database, login again so that the local database is reconstructed.

XXDB.DeleteDatabase();
XXDB.LoginToSync(); //Don't forget to login again so that the local database will be re-constructed.