expose db from session (not very pretty, but can be usefull sometimes)