Revert changes to db.