adds exception handling on user-click refresh, clears window session storage and removes session data from database