Changes to group creation code to work with new database structure and add a couple other new features