On resolve, try db.probe as well as looking up in db.refs