Revert "Use the db instead of the session in the views"
Revert "Use the db instead of the session in the views"

This reverts commit b7ab85cfdf01f4acdc2bea9e3297449528b2e31d.

Kozea/Pynuts,Kozea/Pynuts,Kozea/Pynuts