Fix broken shared db session