Revert db changes