Fix portfolio performance
Improve some code
Improve database configuration