adapting team registration to new structure of database