Fix getDefaultTable

which was always retrieving the table from the default repository.