use db wrapper cook instead of role