Added db support for teams, and basic, unauth retrieval.
Removed the temp files, again.