Fix session storage with postgres