reorganized the structure of mysqli objects within classes