revert db changes