Revert db script