team database related stuff

notice that i haven't done anything about the group updating, so we need
to discuss what we want to do here, if we want to make a seperate method
for this or if it should be included in the update method.