update invite script after removal of some db fields