Implement refdb API for v0.6 storage