@NonNull
    private static File databasePath(final boolean internal) {
        return new File(internal ? LocalStorage.getInternalDbDirectory() : LocalStorage.getExternalDbDirectory(), DB_FILE_NAME);
    }
Move the database to/from external cgdata in a new thread,
showing a progress window
main/src/main/java/cgeo/geocaching/storage/DataStore.java