Work on database middleware session storage