Updated script after database cleanup