made team page load from db