Sdasktc fixing entitymanager

Implemented start statement document. Fixed viewing logs. Removed session factory - now, we are using only entity manager. Added new ER diagram. Implemented mockito tests for TeamService. Yeap, a lot of fixes in one branch, it is bad.