- fixed db query for switching teams
- minor refactorings and finished drag/drop team view