few changes to the team database part

rewrote a bit, added setters, and added the method for assignToGroup