changed the model so that it now always tries to build the class tree from the local db and only automatically fetches from the server if no local data is found.