This DB call is a little harder to remove but you should be able to pass through the information you need from where print_session_list_table is called. In view.php