Make closeDatabase a private category for unit tests