Fix DbSession for begin/end of usage