DB session handler work in progress (not working)