updated connect stmt