corrected insert event with current teamid
added session_start()
Merge remote-tracking branch 'origin/v2.0'