'Get info about a session.
Parameters
session : int
Session number to retrieve.
Returns
session_id : int
Session ID number
start : datetime
Timestamp for the start of the session.
end : datetime
Timestamp for the end of the session, or None if IPython crashed.
num_cmds : int
Number of commands run, or None if IPython crashed.
remark : unicode
A manually set description.'

@needs_sqlite
@catch_corrupt_db
def get_session_info(self, session):

    query = 'SELECT    *    from    sessions    where    session    ==    ?'
    return self.db.execute(query, (session,)).fetchone()
