updated mobile service to delete database when the state is unhealthy