Converted SessionManager class. Added tests (currently in db_info).