Uses absolute path to access database in push transactions.
Adds a max_price function to encapsulate using R to determine the max of a list of prices.
Fixes error in calculating the historical buy and sell prices.