db - attach callbacks on after commit