fixes formatting in  process_request module
adds assert_db_link method to Wakka class
converts save_session_id module to a helper function
renames save_session_id_to_db helper function and fixes broken unit test
minor fixes for refactor test