Fix database session dialog