destroy local database on logout