methods created to update aggregate_portfolios in database