Added new session, end session logging into query logs, fixed timestamp