Update logic for determining base transaction
Update caching of prior transactions
Update for hosting on Pagodabox
Fix database queries