putting the db changes back