cleaned up db schema
refactored and corrected errors in team page
refactored and corrected errors in team page