Added fixes for the lst email wsa the last email used to send the trip if the expenses is from history rather than process trips.
Added SQLDB functionality to sort the logs according to date and id.
Added fix so when the process trip calls trip expenses it won't load up the history specific items
Fix so the resend trip will trigger when clicked.