Work on getting portfolio from the database