fix db session