fix connect db