audit callback before db action