New public closeDatabase method for certain edge cases (e.g. deleting the DB on user logout).