Sessions through DBMS

Fixes #57