fix connect db problem