revert to keep database