implemented PortfolioModel; updated db;