Fix session db