refined the Teams/Team model and activated in memory db