rewrite the sessionsFromQueries method to use Session and improve it because of the database command ; add some methods like count() or getTracks() to Session class