revert database