fix cannot connect database