More changes for refdb